<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<title>欢迎来到淘宝</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<style>
			body {
				margin-top: 20px;
				margin: 0 auto;
				width: 100%;
			}
			.carousel-inner .item img {
				width: 100%;
				height: 300px;
			}
		</style>
</head>
<body>
<div class="container-fluid">
				<div class="col-md-4">
					
				</div>
				<div class="col-md-5">
					<img src="img/header.png" />
				</div>
				<div class="col-md-3" style="padding-top:20px">
					<%@ include file="jhtop.jsp" %>   <!-- 顶部动态字 -->
				</div>
			</div>
			<%@ include file="jhtop1.jsp" %>   <!-- 商品类型显示和搜索框 -->
			
			<div class="row" style="width:1210px;margin:0 auto;">
			

			<c:forEach items="${commodity }" var = "n">
			
                       		 <div class="col-md-2">
				<a href="${pageContext.request.contextPath }/ShowDetailsServlet?id=${n.cmdyid}">
					<img  src="${pageContext.request.contextPath }${n.img}" width="170" height="170" style="display: inline-block;">
				</a>
				<p><a href="" style='color:green'>${n.cmdyname }</a></p>
				<p><font color="#FF0000">商城价：&yen;${n.price }</font></p>
			 </div>
			 
             </c:forEach>
			
			</div>
</body>
</html>